lib/repo: Immediately error creating bare-user repo on tmpfs
authorColin Walters <walters@verbum.org>
Wed, 5 Jul 2017 14:50:34 +0000 (10:50 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 6 Jul 2017 14:31:37 +0000 (14:31 +0000)
commit23b93a3eb6d4483a3be22757b887bcbf6147cd4c
tree817cc3e4a16240f608f4c060c93b190f8694dbaf
parent3234295324fe63f488cc68632066a784d4d11f53
lib/repo: Immediately error creating bare-user repo on tmpfs

And in general, if for some reason we can't write `user.` xattrs, provide an
error immediately rather than doing it during a later pull. This way the failure
cause is a lot more obvious.

Related: https://github.com/ostreedev/ostree/issues/991

Closes: #993
Approved by: jlebon
src/libostree/ostree-repo-commit.c
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c
tests/installed/itest-bareuser-nouserxattrs.sh [new file with mode: 0755]